//
//  VideoCompressManager.h
//  Runner
//
//  Created by 显铭 on 2020/4/8.
//  Copyright © 2020 The Chromium Authors. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface VideoCompressTool : NSObject

///压缩/转码
- (void)compressVideoWithAsset:(AVURLAsset *)asset withBiteRate:(NSNumber * _Nullable)outputBiteRate withFrameRate:(NSNumber * _Nullable)outputFrameRate withVideoWidth:(NSNumber * _Nullable)outputWidth withVideoHeight:(NSNumber * _Nullable)outputHeight outputPath:(NSString *)outputPath compressComplete:(void(^)(id responseObjc))compressComplete progressHandler:(void(^)(float progress))progressHandler;

///取消
- (void)cancelCompressing;

@end

NS_ASSUME_NONNULL_END
